package com.javabean;


/*
 *
 *  冰箱测试类
 *
 *
 * */
//用于测试冰箱的JavaBean类
public class FridgeTest {
    //程序的主入口,main方法
    public static void main(String[] args) {
        //无参构造
        Fridge fridge1 = new Fridge();

        //赋值
        fridge1.setBrand("Midea");
        fridge1.setColor("红色");
        fridge1.setCapacity(5);
        fridge1.setWaterPurificationMode("手动净水");
        fridge1.setSize("迷你");

        //调用成员方法show() 对属性进展示
        fridge1.show();


        //带才构造创建对象
        Fridge fridge2 = new Fridge("xiaohuaduo", "白色", 1000, "自动净水","超导性");

        //调用show()展示属性
        fridge2.show();
    }
}
